<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../../script/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            console.log($("input[name!='newsletter']").length); // 1
            $("input[name='newsletter']").attr("checked", true);
            console.log($("input[name^='news']").length); // 2
            console.log($("input[name$='letter']").length); // 2
            console.log($("input[type*='ck']").length); // 3
            console.log($("input[type='checkbox'][value*='l']").length); // 2
        });
    </script>
</head>
<body>
<input type="checkbox" name="newsletter" value="Hot Fuzz">
<input type="checkbox" name="newsletter" value="Cold Fusion">
<input type="checkbox" value="Evil Plans">
</body>
</html>